<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="f" %>
<%@ include file="prelude.jsp" %>

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title><c:out value="${forumName}"/></title>
    <link type="text/css" rel="stylesheet" href='<c:out value="${forumPath}"/>base.css'>
    <c:if test="${not empty user_id}">
      <script type="text/javascript" language="javascript"
          src="/com.bardsoftware.foronuvolo.DiscussionsView/com.bardsoftware.foronuvolo.DiscussionsView.nocache.js"></script>
    </c:if>
  </head>
<body id=root>
<jsp:include page="all_authservices_init.jsp"/>
<div id=body>

<c:import url="page_header.jsp"/>
<div id=content>
  <div id=sidebar>
    <div class="sidebaritem">
      <jsp:include page="format_menu.jsp"/>
    </div>
<br>
<br>
    <div class="sidebaritem">
      <div class="sidebarheader roundtop">You are</div>
      <div class="sidebarcontent">
        <c:set var="nickname" scope="request" value="${nickname}"/>
        <c:set var="user_id" scope="request" value="${user_id}"/>
        <jsp:include page="format_personal_info.jsp"/>
      </div>
    </div>
    <div class=sep>&nbsp;</div>
  </div>

  <div class=main_content>
  <div class="localnav">
      <div id="search_nav_panel">
        <div id="next_prev">
          <c:set var="q" scope="request" value="${q}"/>
          <c:set var="namespace" scope="request" value="${namespace}"/>
          <c:set var="prevPage" scope="request" value="${prevPage}"/>
          <c:set var="nextPage" scope="request" value="${nextPage}"/>
          <jsp:include page="prevnext.jsp"/>
        </div>
      </div>
      <jsp:include page="format_all_hot.jsp"/>
  </div>
  <div class=comment_header> 
    <p>
    (by the way, surrounding a phrase with = = will 
    create a heading, like one above. If a heading comes the first phrase in a message, 
    it becomes a clickable link to the full discussion view).
    </p>
  </div>
    When you type *bold*, you get <b>bold</b>.<br>
    When you type _italic_, you get <i>italic</i>.<br>
    When you type `monospaced`, you get <code>monospaced</code>.
    <p>Links like this: <a href="http://mat-mex.appspot.com">http://mat-mex.appspot.com</a>
    will become clickable automatically.
    </p>
  
    <c:if test="${empty user_id}">
      <p>
        You are not signed in and can only read discussions. 
        Please sign in with Google Friend Connect using your Google, Yahoo or OpenId account.
      </p>
    </c:if>
    <c:if test="${not empty user_id}">
        <!--
                <div class=editor id="new_message_input"></div>
        -->
        <table>
          <tr>
            <td  class=editor id="new_message_input"></td>
            <td id="tags_panel"></td>
          </tr>
          <tr>
            <td colspan="2" style="color:red;" id="send_button"></td>
            <td id="err_notifier">Server error. Try again in a few seconds.</td>
          </tr>
        </table>
    </c:if>
  </div>
</div>  <!-- content -->
</div>  <!-- body -->
</body>
</html>